<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.lanting.meetingserver.domain.Notice"%>
<%@page import="com.lanting.meetingserver.util.RecordList"%>
<%@page import="java.text.SimpleDateFormat"%>
<%
	SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	RecordList<Notice> list = (RecordList<Notice>) request
			.getAttribute("data");

%>
<table id="notice-table" class="datalist  table_data_list"
	cellspacing="0" pageindex="<%=list.pageindex%>"
	pagesize="<%=list.pagesize%>" recordcount="<%=list.recordcount%>"
	cellpadding="0">
	<thead>
		<tr>
			<th>标题</th>
			<th>内容</th>
			<th>发送方式</th>
			<th>状态</th>
			<th class="last">
				操作
			</th>
		</tr>
	</thead>
	<tbody>
		<%
			for(Notice notice :list.Data){
			%>
				<tr>
					<td><%=notice.getTitle() %></td>
					<td><%=notice.getNoticeDesc() %></td>
					<td><%=notice.getSendWay()%></td>
					<td ><%= dateFormat.format(notice.getSendDate())%></td>
					<td class="last">
						<a class="EditItem cell_button edit trigger"  list="tblNotice" rel="#tblNoticeDlg"
					id="editNotice<%=notice.getNoticeId() %>"	href="MeetingNotice/get?id=<%=notice.getNoticeId()%>">编辑</a>
				<a class="DelItem cell_button del" list="tblNotice"
					href="MeetingNotice/del?id=<%=notice.getNoticeId()%>">删除</a>
				
			</td>
				</tr>
			<%
			}
		%>

	</tbody>
</table>